//
//  TLAlertHelper.h
//  FunnyVideo
//
//  Created by 李鑫 on 15/9/20.
//  Copyright © 2015年 NewEggTech. All rights reserved.
//

#import "GiFHUD.h"
#import "ProgressHUD.h"
#import <Foundation/Foundation.h>

typedef void(^ActionSheetBlock)(NSInteger index);

@class UIView;
typedef enum : NSUInteger {
    TLAlertTypeSucc,
    TLAlertTypeNetBlock,
    TLAlertTypeNoneData,
    TLAlertTypeUnknow,
    TLAlertTypeLoading,
} TLAlertType;

@interface TLAlertHelper : NSObject


+ (void)showPopAlertWithString:(NSString *)alertStr;
+ (void)showGifAlert:(NSString *)gifFileName delay:(NSInteger)delay;
+ (void)showGifAlertType:(TLAlertType)alertType delay:(NSInteger)delay;
+ (void)showGifAlertType:(TLAlertType)alertType delay:(NSInteger)delay onSpecialView:(UIView *)spcView;
+ (void)dismissGIFHUD;

+ (void)showSuccessHUDWithText:(NSString *)alertText;
+ (void)showErrorHUDWithText:(NSString *)alertText;
+ (void)showHUDWithText:(NSString *)alertText;
+ (void)dismissHUD;

+ (void)showAlertInView:(UIView *)view title:(NSString *)title cancleBtnTitle:(NSString *)ct destructiveBtnTitle:(NSString *)db completionWithAction:(ActionSheetBlock)completion;


//@property (nonatomic,strong) MBProgressHUD *hud;
@end
